package br.com.vti.sisp_sicrim.antigo.controller.relatorios;

import java.io.FileNotFoundException;
import java.text.ParseException;

import net.sf.jasperreports.engine.JRException;
import br.com.caelum.vraptor.Result;
import br.com.caelum.vraptor.interceptor.download.InputStreamDownload;
import br.com.vti.sisp_sicrim.antigo.model.DidCadastro;
import br.com.vti.sisp_sicrim.antigo.model.Estla001;
import br.com.vti.sisp_sicrim.antigo.model.SicCadastro;
import br.com.vti.sisp_sicrim.antigo.model.SicControle;
import br.com.vti.sisp_sicrim.antigo.model.SicTabelas;
import br.com.vti.sisp_sicrim.antigo.model.Sislm001;
import br.com.vti.sisp_sicrim.antigo.util.Relatorios;
import br.com.vti.sisp_sicrim.antigo.util.Sessao;
import br.com.vti.sisp_sicrim.antigo.util.UtilBean;

/**
 * Classe responsavel por encapsular o tratamento e as consistencias da tela
 * Idcpe090Report
 * 
 * @author Incode - Data: mai/2014
 * 
 */
public class Idcpe090Report {
	private String nomeClasse;
	private long jRegger;
	private String jNpost;
	private String jMunNasc;
	private int jDtNasc;
	private long jNumcpf;
	private String jPais;
	private int jDtExp;
	private String jMunExp;
	private String jMunEnde;
	private String wdes;
	private String dataN;
	private String wpoldir1;
	private String winddir1;
	private String wmeddir1;
	private String wanudir1;
	private String wmindir1;
	private String wpolesq1;
	private String windesq1;
	private String wmedesq1;
	private String wanuesq1;
	private String wminesq1;
	private Long dinideRegger; // DB
	private String diaideNomide; // DB
	private Long dinideNumpro; // DB
	private Integer dinideOrdens; // DB
	private Long dinideRegant; // DB
	private String diaideUfrant; // DB
	private String diaideNomant; // DB
	private String diaideNompai; // DB
	private String diaideNommae; // DB
	private Integer dinideCodsex; // DB
	private Integer dinideComuna; // DB
	private String diaideUfnasc; // DB
	private Integer dinideNacion; // DB
	private Integer dinideNumpor; // DB
	private Integer dinideAnopor; // DB
	private Integer dinideCodpor; // DB
	private Integer dinideEstciv; // DB
	private String diaideNumfol; // DB
	private Integer dinideTipdoc; // DB
	private String diaideNumliv; // DB
	private String diaideZonaof; // DB
	private String diaideNumcer; // DB
	private String diaideEndere; // DB
	private String diaideUfexpe; // DB
	private Integer dinideComuex; // DB
	private String diaideBairro; // DB
	private String diaideNumres; // DB
	private String diaideUfmure; // DB
	private Integer dinideComuen; // DB
	private Long dinidePispas; // DB
	private Integer dinideAltura; // DB
	private Integer dinideCodcut; // DB
	private Integer dinideCorcab; // DB
	private Integer dinideCorolh; // DB
	private Integer dinideTipcab; // DB
	private Integer dinideMatfua; // DB
	private String diaideObserv; // DB
	private String diaideMicrof; // DB
	public String jPoldir;
	public String wpoldir2;
	public String jInddir;
	public String winddir2;
	public String jMeddir;
	public String wmeddir2;
	public String jAnudir;
	public String wanudir2;
	public String jMindir;
	public String wmindir2;
	public String jPolesq;
	public String wpolesq2;
	public String jIndesq;
	public String windesq2;
	public String jMedesq;
	public String wmedesq2;
	public String jAnuesq;
	public String wanuesq2;
	public String jMinesq;
	public String wminesq2;
	public String wdespro;
	public String dataA;
	private String horaCorrente;
	private Result result;
	private Sessao sessao;
	private Relatorios report;
	// Classes views
	DidCadastro vwDidcad = new DidCadastro();
	SicControle vwDvecon = new SicControle();
	SicTabelas vwDvetab = new SicTabelas();
	SicCadastro criminalView = new SicCadastro();
	DidCadastro civilView = new DidCadastro();
	SicTabelas vwTabele = new SicTabelas();
	// Classes includes
	Estla001 estla001 = new Estla001();
	Sislm001 sislm001 = new Sislm001();

	public Idcpe090Report() throws JRException {
		inicializar();
	}

	public Idcpe090Report(Sessao sessao) throws JRException {
		this.sessao = sessao;
		inicializar();
	}

	public void inicializar() throws JRException {
		report = new Relatorios();
		nomeClasse = this.getClass().getSimpleName();
		jRegger = 0;
		jNpost = "";
		jMunNasc = "";
		jDtNasc = 0;
		jNumcpf = 0;
		jPais = "";
		jDtExp = 0;
		jMunExp = "";
		jMunEnde = "";
		report.setNumeroRel(1, "D");
		{
			report.setNumeroLinhaRel(6, 2);
			{
				report.adicionaCampo(45, 3, "Jnpost", "X", "", "");
				report.adicionaCampo(50, 9, "Dinidenumpro", "N", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(9, 4);
			{
				report.adicionaCampo(1, 2, "Dinideordens", "N", "ZZZZ99999999-9", "");
				report.adicionaCampo(22, 13, "Jregger", "N", "ZZZZ99999999-9", "");
				report.adicionaCampo(45, 13, "Dinideregant", "N", "", "");
				report.adicionaCampo(60, 2, "Diaideufrant", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(11, 1);
			{
				report.adicionaCampo(3, 60, "Diaidenomide", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(13, 1);
			{
				report.adicionaCampo(3, 60, "Diaidenomant", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(15, 1);
			{
				report.adicionaCampo(3, 60, "Diaidenompai", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(17, 1);
			{
				report.adicionaCampo(3, 60, "Diaidenommae", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(19, 6);
			{
				report.adicionaCampo(3, 8, "Jdtnasc", "N", "99/99/9999", "");
				report.adicionaCampo(2, 23, "Jmunnasc", "X", "99/99/9999", "");
				report.adicionaCampo(1, 4, "Dinidecomuna", "N", "99/99/9999", "");
				report.adicionaCampo(2, 2, "Diaideufnasc", "X", "", "");
				report.adicionaCampo(1, 1, "Dinidecodsex", "N", "", "");
				report.adicionaCampo(8, 1, "Dinidenacion", "N", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(21, 6);
			{
				report.adicionaCampo(2, 5, "Dinidenumpor", "N", "", "");
				report.adicionaCampo(11, 4, "Dinideanopor", "N", "", "");
				report.adicionaCampo(17, 20, "Jpais", "X", "", "");
				report.adicionaCampo(41, 4, "Dinidecodpor", "N", "", "");
				report.adicionaCampo(1, 11, "Jnumcpf", "N", "ZZZ.ZZZ.ZZZ-ZZ", "");
				report.adicionaCampo(63, 1, "Dinideestciv", "N", "ZZZ.ZZZ.ZZZ-ZZ", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(23, 6);
			{
				report.adicionaCampo(2, 1, "Dinidetipdoc", "N", "", "");
				report.adicionaCampo(23, 9, "Diaidenumcer", "X", "", "");
				report.adicionaCampo(1, 6, "Diaidenumfol", "X", "", "");
				report.adicionaCampo(3, 8, "Diaidenumliv", "X", "99/99/9999", "");
				report.adicionaCampo(2, 8, "Jdtexp", "N", "99/99/9999", "");
				report.adicionaCampo(5, 6, "Diaidezonaof", "X", "99/99/9999", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(25, 4);
			{
				report.adicionaCampo(2, 20, "Jmunexp", "X", "", "");
				report.adicionaCampo(5, 4, "Dinidecomuex", "N", "", "");
				report.adicionaCampo(2, 2, "Diaideufexpe", "X", "", "");
				report.adicionaCampo(2, 30, "Diaideendere", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(27, 3);
			{
				report.adicionaCampo(20, 5, "Diaidenumres", "X", "", "");
				report.adicionaCampo(3, 20, "Diaidebairro", "X", "", "");
				report.adicionaCampo(8, 23, "Jmunende", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(29, 5);
			{
				report.adicionaCampo(2, 4, "Dinidecomuen", "N", "", "");
				report.adicionaCampo(2, 2, "Diaideufmure", "X", "", "");
				report.adicionaCampo(5, 11, "Dinidepispas", "N", "", "");
				report.adicionaCampo(8, 28, "Wdes", "X", "", "");
				report.adicionaCampo(70, 3, "Dinidealtura", "N", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(31, 6);
			{
				report.adicionaCampo(2, 1, "Dinidecodcut", "N", "", "");
				report.adicionaCampo(12, 1, "Dinidecorolh", "N", "", "");
				report.adicionaCampo(9, 1, "Dinidecorcab", "N", "", "");
				report.adicionaCampo(12, 1, "Dinidetipcab", "N", "99/99/9999", "");
				report.adicionaCampo(14, 8, "DataN", "N", "99/99/9999", "");
				report.adicionaCampo(65, 7, "Dinidematfua", "N", "99/99/9999", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(33, 1);
			{
				report.adicionaCampo(2, 60, "Diaideobserv", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(35, 1);
			{
				report.adicionaCampo(2, 10, "Diaidemicrof", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(37, 10);
			{
				report.adicionaCampo(7, 5, "Wpoldir1", "X", "", "");
				report.adicionaCampo(13, 5, "Winddir1", "X", "", "");
				report.adicionaCampo(19, 5, "Wmeddir1", "X", "", "");
				report.adicionaCampo(26, 5, "Wanudir1", "X", "", "");
				report.adicionaCampo(32, 5, "Wmindir1", "X", "", "");
				report.adicionaCampo(46, 5, "Wpolesq1", "X", "", "");
				report.adicionaCampo(52, 5, "Windesq1", "X", "", "");
				report.adicionaCampo(58, 5, "Wmedesq1", "X", "", "");
				report.adicionaCampo(65, 5, "Wanuesq1", "X", "", "");
				report.adicionaCampo(71, 5, "Wminesq1", "X", "", "");
				report.setFimLinhaRel();
			}
		}
		report.setNumeroRel(2, "D");
		{
			report.setNumeroLinhaRel(7, 2);
			{
				report.adicionaCampo(45, 3, "Jnpost", "X", "", "");
				report.adicionaCampo(50, 9, "Dinidenumpro", "N", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(10, 4);
			{
				report.adicionaCampo(1, 2, "Dinideordens", "N", "ZZZZ99999999-9", "");
				report.adicionaCampo(22, 13, "Jregger", "N", "ZZZZ99999999-9", "");
				report.adicionaCampo(45, 13, "Dinideregant", "N", "", "");
				report.adicionaCampo(60, 2, "Diaideufrant", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(12, 1);
			{
				report.adicionaCampo(3, 60, "Diaidenomide", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(14, 1);
			{
				report.adicionaCampo(3, 60, "Diaidenomant", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(16, 1);
			{
				report.adicionaCampo(3, 60, "Diaidenompai", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(18, 1);
			{
				report.adicionaCampo(3, 60, "Diaidenommae", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(20, 6);
			{
				report.adicionaCampo(3, 8, "Jdtnasc", "N", "99/99/9999", "");
				report.adicionaCampo(2, 23, "Jmunnasc", "X", "99/99/9999", "");
				report.adicionaCampo(1, 4, "Dinidecomuna", "N", "99/99/9999", "");
				report.adicionaCampo(2, 2, "Diaideufnasc", "X", "", "");
				report.adicionaCampo(1, 1, "Dinidecodsex", "N", "", "");
				report.adicionaCampo(8, 1, "Dinidenacion", "N", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(22, 6);
			{
				report.adicionaCampo(2, 5, "Dinidenumpor", "N", "", "");
				report.adicionaCampo(11, 4, "Dinideanopor", "N", "", "");
				report.adicionaCampo(17, 20, "Jpais", "X", "", "");
				report.adicionaCampo(41, 4, "Dinidecodpor", "N", "", "");
				report.adicionaCampo(1, 11, "Jnumcpf", "N", "ZZZ.ZZZ.ZZZ-ZZ", "");
				report.adicionaCampo(63, 1, "Dinideestciv", "N", "ZZZ.ZZZ.ZZZ-ZZ", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(24, 6);
			{
				report.adicionaCampo(2, 1, "Dinidetipdoc", "N", "", "");
				report.adicionaCampo(23, 9, "Diaidenumcer", "X", "", "");
				report.adicionaCampo(1, 6, "Diaidenumfol", "X", "", "");
				report.adicionaCampo(3, 8, "Diaidenumliv", "X", "99/99/9999", "");
				report.adicionaCampo(2, 8, "Jdtexp", "N", "99/99/9999", "");
				report.adicionaCampo(5, 6, "Diaidezonaof", "X", "99/99/9999", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(26, 4);
			{
				report.adicionaCampo(2, 20, "Jmunexp", "X", "", "");
				report.adicionaCampo(5, 4, "Dinidecomuex", "N", "", "");
				report.adicionaCampo(2, 2, "Diaideufexpe", "X", "", "");
				report.adicionaCampo(2, 30, "Diaideendere", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(28, 3);
			{
				report.adicionaCampo(20, 5, "Diaidenumres", "X", "", "");
				report.adicionaCampo(3, 20, "Diaidebairro", "X", "", "");
				report.adicionaCampo(8, 23, "Jmunende", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(30, 5);
			{
				report.adicionaCampo(2, 4, "Dinidecomuen", "N", "", "");
				report.adicionaCampo(2, 2, "Diaideufmure", "X", "", "");
				report.adicionaCampo(5, 11, "Dinidepispas", "N", "", "");
				report.adicionaCampo(8, 28, "Wdes", "X", "", "");
				report.adicionaCampo(70, 3, "Dinidealtura", "N", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(32, 6);
			{
				report.adicionaCampo(2, 1, "Dinidecodcut", "N", "", "");
				report.adicionaCampo(12, 1, "Dinidecorolh", "N", "", "");
				report.adicionaCampo(9, 1, "Dinidecorcab", "N", "", "");
				report.adicionaCampo(12, 1, "Dinidetipcab", "N", "99/99/9999", "");
				report.adicionaCampo(14, 8, "DataN", "N", "99/99/9999", "");
				report.adicionaCampo(65, 7, "Dinidematfua", "N", "99/99/9999", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(34, 1);
			{
				report.adicionaCampo(2, 60, "Diaideobserv", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(36, 1);
			{
				report.adicionaCampo(2, 10, "Diaidemicrof", "X", "", "");
				report.setFimLinhaRel();
			}
			report.setNumeroLinhaRel(38, 10);
			{
				report.adicionaCampo(7, 5, "Wpoldir1", "X", "", "");
				report.adicionaCampo(13, 5, "Winddir1", "X", "", "");
				report.adicionaCampo(19, 5, "Wmeddir1", "X", "", "");
				report.adicionaCampo(26, 5, "Wanudir1", "X", "", "");
				report.adicionaCampo(32, 5, "Wmindir1", "X", "", "");
				report.adicionaCampo(46, 5, "Wpolesq1", "X", "", "");
				report.adicionaCampo(52, 5, "Windesq1", "X", "", "");
				report.adicionaCampo(58, 5, "Wmedesq1", "X", "", "");
				report.adicionaCampo(65, 5, "Wanuesq1", "X", "", "");
				report.adicionaCampo(71, 5, "Wminesq1", "X", "", "");
				report.setFimLinhaRel();
			}
		}
	}

	public boolean validar() {
		// validar os campos recebidos da tela
		return true;
	}

	public String getNomeClasse() {
		return nomeClasse;
	}

	public void setNomeClasse(String nomeClasse) throws ParseException {
		this.nomeClasse = nomeClasse;
		report.adicionaValorReport("Program", nomeClasse);
	}

	public long getJregger() {
		return jRegger;
	}

	public void setJregger(long jRegger) throws ParseException {
		this.jRegger = jRegger;
		report.adicionaValorReport("Jregger", jRegger);
	}

	public String getJnpost() {
		return jNpost;
	}

	public void setJnpost(String jNpost) throws ParseException {
		this.jNpost = jNpost;
		report.adicionaValorReport("Jnpost", jNpost);
	}

	public String getJmunnasc() {
		return jMunNasc;
	}

	public void setJmunnasc(String jMunNasc) throws ParseException {
		this.jMunNasc = jMunNasc;
		report.adicionaValorReport("Jmunnasc", jMunNasc);
	}

	public int getJdtnasc() {
		return jDtNasc;
	}

	public void setJdtnasc(int jDtNasc) throws ParseException {
		this.jDtNasc = jDtNasc;
		report.adicionaValorReport("Jdtnasc", jDtNasc);
	}

	public long getJnumcpf() {
		return jNumcpf;
	}

	public void setJnumcpf(long jNumcpf) throws ParseException {
		this.jNumcpf = jNumcpf;
		report.adicionaValorReport("Jnumcpf", jNumcpf);
	}

	public String getJpais() {
		return jPais;
	}

	public void setJpais(String jPais) throws ParseException {
		this.jPais = jPais;
		report.adicionaValorReport("Jpais", jPais);
	}

	public int getJdtexp() {
		return jDtExp;
	}

	public void setJdtexp(int jDtExp) throws ParseException {
		this.jDtExp = jDtExp;
		report.adicionaValorReport("Jdtexp", jDtExp);
	}

	public String getJmunexp() {
		return jMunExp;
	}

	public void setJmunexp(String jMunExp) throws ParseException {
		this.jMunExp = jMunExp;
		report.adicionaValorReport("Jmunexp", jMunExp);
	}

	public String getJmunende() {
		return jMunEnde;
	}

	public void setJmunende(String jMunEnde) throws ParseException {
		this.jMunEnde = jMunEnde;
		report.adicionaValorReport("Jmunende", jMunEnde);
	}

	public String getWdes() {
		return wdes;
	}

	public void setWdes(String wdes) throws ParseException {
		this.wdes = wdes;
		report.adicionaValorReport("Wdes", wdes);
	}

	public String getDataN() {
		return dataN;
	}

	public void setDataN(String dataN) throws ParseException {
		this.dataN = dataN;
		report.adicionaValorReport("DataN", dataN);
	}

	public String getWpoldir1() {
		return wpoldir1;
	}

	public void setWpoldir1(String wpoldir1) throws ParseException {
		this.wpoldir1 = wpoldir1;
		report.adicionaValorReport("Wpoldir1", wpoldir1);
	}

	public String getWinddir1() {
		return winddir1;
	}

	public void setWinddir1(String winddir1) throws ParseException {
		this.winddir1 = winddir1;
		report.adicionaValorReport("Winddir1", winddir1);
	}

	public String getWmeddir1() {
		return wmeddir1;
	}

	public void setWmeddir1(String wmeddir1) throws ParseException {
		this.wmeddir1 = wmeddir1;
		report.adicionaValorReport("Wmeddir1", wmeddir1);
	}

	public String getWanudir1() {
		return wanudir1;
	}

	public void setWanudir1(String wanudir1) throws ParseException {
		this.wanudir1 = wanudir1;
		report.adicionaValorReport("Wanudir1", wanudir1);
	}

	public String getWmindir1() {
		return wmindir1;
	}

	public void setWmindir1(String wmindir1) throws ParseException {
		this.wmindir1 = wmindir1;
		report.adicionaValorReport("Wmindir1", wmindir1);
	}

	public String getWpolesq1() {
		return wpolesq1;
	}

	public void setWpolesq1(String wpolesq1) throws ParseException {
		this.wpolesq1 = wpolesq1;
		report.adicionaValorReport("Wpolesq1", wpolesq1);
	}

	public String getWindesq1() {
		return windesq1;
	}

	public void setWindesq1(String windesq1) throws ParseException {
		this.windesq1 = windesq1;
		report.adicionaValorReport("Windesq1", windesq1);
	}

	public String getWmedesq1() {
		return wmedesq1;
	}

	public void setWmedesq1(String wmedesq1) throws ParseException {
		this.wmedesq1 = wmedesq1;
		report.adicionaValorReport("Wmedesq1", wmedesq1);
	}

	public String getWanuesq1() {
		return wanuesq1;
	}

	public void setWanuesq1(String wanuesq1) throws ParseException {
		this.wanuesq1 = wanuesq1;
		report.adicionaValorReport("Wanuesq1", wanuesq1);
	}

	public String getWminesq1() {
		return wminesq1;
	}

	public void setWminesq1(String wminesq1) throws ParseException {
		this.wminesq1 = wminesq1;
		report.adicionaValorReport("Wminesq1", wminesq1);
	} // /

	public String getDataA() {
		return this.dataN;
	}

	public void setDataA(String dataA) throws ParseException {
		this.dataA = dataA;
		this.dataN = UtilBean.subStr(dataA, 0, 8);
		report.adicionaValorReport("DataN", UtilBean.subStr(dataA, 0, 8));
	} // /

	public String getWanudir() {
		return this.wanudir1 + this.wanudir2;
	}

	public void setWanudir(String jAnudir) throws ParseException {
		this.jAnudir = jAnudir;
		this.wanudir1 = UtilBean.subStr(jAnudir, 0, 5);
		report.adicionaValorReport("Wanudir1", UtilBean.subStr(jAnudir, 0, 5));
		this.wanudir2 = UtilBean.subStr(jAnudir, 5, 2);
		report.adicionaValorReport("Wanudir2", UtilBean.subStr(jAnudir, 5, 2));
	} // /

	public String getWanuesq() {
		return this.wanuesq1 + this.wanuesq2;
	}

	public void setWanuesq(String jAnuesq) throws ParseException {
		this.jAnuesq = jAnuesq;
		this.wanuesq1 = UtilBean.subStr(jAnuesq, 0, 5);
		report.adicionaValorReport("Wanuesq1", UtilBean.subStr(jAnuesq, 0, 5));
		this.wanuesq2 = UtilBean.subStr(jAnuesq, 5, 2);
		report.adicionaValorReport("Wanuesq2", UtilBean.subStr(jAnuesq, 5, 2));
	} // /

	public String getWinddir() {
		return this.winddir1 + this.winddir2;
	}

	public void setWinddir(String jInddir) throws ParseException {
		this.jInddir = jInddir;
		this.winddir1 = UtilBean.subStr(jInddir, 0, 5);
		report.adicionaValorReport("Winddir1", UtilBean.subStr(jInddir, 0, 5));
		this.winddir2 = UtilBean.subStr(jInddir, 5, 2);
		report.adicionaValorReport("Winddir2", UtilBean.subStr(jInddir, 5, 2));
	} // /

	public String getWindesq() {
		return this.windesq1 + this.windesq2;
	}

	public void setWindesq(String jIndesq) throws ParseException {
		this.jIndesq = jIndesq;
		this.windesq1 = UtilBean.subStr(jIndesq, 0, 5);
		report.adicionaValorReport("Windesq1", UtilBean.subStr(jIndesq, 0, 5));
		this.windesq2 = UtilBean.subStr(jIndesq, 5, 2);
		report.adicionaValorReport("Windesq2", UtilBean.subStr(jIndesq, 5, 2));
	} // /

	public String getWmeddir() {
		return this.wmeddir1 + this.wmeddir2;
	}

	public void setWmeddir(String jMeddir) throws ParseException {
		this.jMeddir = jMeddir;
		this.wmeddir1 = UtilBean.subStr(jMeddir, 0, 5);
		report.adicionaValorReport("Wmeddir1", UtilBean.subStr(jMeddir, 0, 5));
		this.wmeddir2 = UtilBean.subStr(jMeddir, 5, 2);
		report.adicionaValorReport("Wmeddir2", UtilBean.subStr(jMeddir, 5, 2));
	} // /

	public String getWmedesq() {
		return this.wmedesq1 + this.wmedesq2;
	}

	public void setWmedesq(String jMedesq) throws ParseException {
		this.jMedesq = jMedesq;
		this.wmedesq1 = UtilBean.subStr(jMedesq, 0, 5);
		report.adicionaValorReport("Wmedesq1", UtilBean.subStr(jMedesq, 0, 5));
		this.wmedesq2 = UtilBean.subStr(jMedesq, 5, 2);
		report.adicionaValorReport("Wmedesq2", UtilBean.subStr(jMedesq, 5, 2));
	} // /

	public String getWmindir() {
		return this.wmindir1 + this.wmindir2;
	}

	public void setWmindir(String jMindir) throws ParseException {
		this.jMindir = jMindir;
		this.wmindir1 = UtilBean.subStr(jMindir, 0, 5);
		report.adicionaValorReport("Wmindir1", UtilBean.subStr(jMindir, 0, 5));
		this.wmindir2 = UtilBean.subStr(jMindir, 5, 2);
		report.adicionaValorReport("Wmindir2", UtilBean.subStr(jMindir, 5, 2));
	} // /

	public String getWminesq() {
		return this.wminesq1 + this.wminesq2;
	}

	public void setWminesq(String jMinesq) throws ParseException {
		this.jMinesq = jMinesq;
		this.wminesq1 = UtilBean.subStr(jMinesq, 0, 5);
		report.adicionaValorReport("Wminesq1", UtilBean.subStr(jMinesq, 0, 5));
		this.wminesq2 = UtilBean.subStr(jMinesq, 5, 2);
		report.adicionaValorReport("Wminesq2", UtilBean.subStr(jMinesq, 5, 2));
	} // /

	public String getWpoldir() {
		return this.wpoldir1 + this.wpoldir2;
	}

	public void setWpoldir(String jPoldir) throws ParseException {
		this.jPoldir = jPoldir;
		this.wpoldir1 = UtilBean.subStr(jPoldir, 0, 5);
		report.adicionaValorReport("Wpoldir1", UtilBean.subStr(jPoldir, 0, 5));
		this.wpoldir2 = UtilBean.subStr(jPoldir, 5, 2);
		report.adicionaValorReport("Wpoldir2", UtilBean.subStr(jPoldir, 5, 2));
	} // /

	public String getWpolesq() {
		return this.wpolesq1 + this.wpolesq2;
	}

	public void setWpolesq(String jPolesq) throws ParseException {
		this.jPolesq = jPolesq;
		this.wpolesq1 = UtilBean.subStr(jPolesq, 0, 5);
		report.adicionaValorReport("Wpolesq1", UtilBean.subStr(jPolesq, 0, 5));
		this.wpolesq2 = UtilBean.subStr(jPolesq, 5, 2);
		report.adicionaValorReport("Wpolesq2", UtilBean.subStr(jPolesq, 5, 2));
	} // /

	public String getWdespro() {
		return this.wdes;
	}

	public void setWdespro(String wdespro) throws ParseException {
		this.wdespro = wdespro;
		this.wdes = UtilBean.subStr(wdespro, 0, 28);
		report.adicionaValorReport("Wdes", UtilBean.subStr(wdespro, 0, 28));
	}

	public void setPageSize(int pagesize) throws JRException {
		report.setPageSize(pagesize);
	}

	public void setLineSize(int linesize) {
		report.setLineSize(linesize);
	}

	public int getPageSize() {
		return report.getPageSize();
	}

	public int getPageLine() {
		return report.getPageLine();
	}

	public void saltaLinhas(int qtdLinhas) throws ParseException, JRException {
		report.saltaLinhas(qtdLinhas);
	}

	public void gravaRelatorio(int nroRel) throws ParseException, JRException {
		report.gravaRelatorio(report, nroRel, false);
	}

	public InputStreamDownload imprimir() throws FileNotFoundException, JRException {
		return report.imprimir();
	}

	public Long getDinideRegger() {
		return dinideRegger;
	}

	public void setDinideRegger(Long dinideRegger) throws ParseException {
		this.dinideRegger = dinideRegger;
		report.adicionaValorReport("dinideRegger", dinideRegger);
	}

	public String getDiaideNomide() {
		return diaideNomide;
	}

	public void setDiaideNomide(String diaideNomide) throws ParseException {
		this.diaideNomide = diaideNomide;
		report.adicionaValorReport("diaideNomide", diaideNomide);
	}

	public Long getDinideNumpro() {
		return dinideNumpro;
	}

	public void setDinideNumpro(Long dinideNumpro) throws ParseException {
		this.dinideNumpro = dinideNumpro;
		report.adicionaValorReport("dinideNumpro", dinideNumpro);
	}

	public Integer getDinideOrdens() {
		return dinideOrdens;
	}

	public void setDinideOrdens(Integer dinideOrdens) throws ParseException {
		this.dinideOrdens = dinideOrdens;
		report.adicionaValorReport("dinideOrdens", dinideOrdens);
	}

	public Long getDinideRegant() {
		return dinideRegant;
	}

	public void setDinideRegant(Long dinideRegant) throws ParseException {
		this.dinideRegant = dinideRegant;
		report.adicionaValorReport("dinideRegant", dinideRegant);
	}

	public String getDiaideUfrant() {
		return diaideUfrant;
	}

	public void setDiaideUfrant(String diaideUfrant) throws ParseException {
		this.diaideUfrant = diaideUfrant;
		report.adicionaValorReport("diaideUfrant", diaideUfrant);
	}

	public String getDiaideNomant() {
		return diaideNomant;
	}

	public void setDiaideNomant(String diaideNomant) throws ParseException {
		this.diaideNomant = diaideNomant;
		report.adicionaValorReport("diaideNomant", diaideNomant);
	}

	public String getDiaideNompai() {
		return diaideNompai;
	}

	public void setDiaideNompai(String diaideNompai) throws ParseException {
		this.diaideNompai = diaideNompai;
		report.adicionaValorReport("diaideNompai", diaideNompai);
	}

	public String getDiaideNommae() {
		return diaideNommae;
	}

	public void setDiaideNommae(String diaideNommae) throws ParseException {
		this.diaideNommae = diaideNommae;
		report.adicionaValorReport("diaideNommae", diaideNommae);
	}

	public Integer getDinideCodsex() {
		return dinideCodsex;
	}

	public void setDinideCodsex(Integer dinideCodsex) throws ParseException {
		this.dinideCodsex = dinideCodsex;
		report.adicionaValorReport("dinideCodsex", dinideCodsex);
	}

	public Integer getDinideComuna() {
		return dinideComuna;
	}

	public void setDinideComuna(Integer dinideComuna) throws ParseException {
		this.dinideComuna = dinideComuna;
		report.adicionaValorReport("dinideComuna", dinideComuna);
	}

	public String getDiaideUfnasc() {
		return diaideUfnasc;
	}

	public void setDiaideUfnasc(String diaideUfnasc) throws ParseException {
		this.diaideUfnasc = diaideUfnasc;
		report.adicionaValorReport("diaideUfnasc", diaideUfnasc);
	}

	public Integer getDinideNacion() {
		return dinideNacion;
	}

	public void setDinideNacion(Integer dinideNacion) throws ParseException {
		this.dinideNacion = dinideNacion;
		report.adicionaValorReport("dinideNacion", dinideNacion);
	}

	public Integer getDinideNumpor() {
		return dinideNumpor;
	}

	public void setDinideNumpor(Integer dinideNumpor) throws ParseException {
		this.dinideNumpor = dinideNumpor;
		report.adicionaValorReport("dinideNumpor", dinideNumpor);
	}

	public Integer getDinideAnopor() {
		return dinideAnopor;
	}

	public void setDinideAnopor(Integer dinideAnopor) throws ParseException {
		this.dinideAnopor = dinideAnopor;
		report.adicionaValorReport("dinideAnopor", dinideAnopor);
	}

	public Integer getDinideCodpor() {
		return dinideCodpor;
	}

	public void setDinideCodpor(Integer dinideCodpor) throws ParseException {
		this.dinideCodpor = dinideCodpor;
		report.adicionaValorReport("dinideCodpor", dinideCodpor);
	}

	public Integer getDinideEstciv() {
		return dinideEstciv;
	}

	public void setDinideEstciv(Integer dinideEstciv) throws ParseException {
		this.dinideEstciv = dinideEstciv;
		report.adicionaValorReport("dinideEstciv", dinideEstciv);
	}

	public String getDiaideNumfol() {
		return diaideNumfol;
	}

	public void setDiaideNumfol(String diaideNumfol) throws ParseException {
		this.diaideNumfol = diaideNumfol;
		report.adicionaValorReport("diaideNumfol", diaideNumfol);
	}

	public Integer getDinideTipdoc() {
		return dinideTipdoc;
	}

	public void setDinideTipdoc(Integer dinideTipdoc) throws ParseException {
		this.dinideTipdoc = dinideTipdoc;
		report.adicionaValorReport("dinideTipdoc", dinideTipdoc);
	}

	public String getDiaideNumliv() {
		return diaideNumliv;
	}

	public void setDiaideNumliv(String diaideNumliv) throws ParseException {
		this.diaideNumliv = diaideNumliv;
		report.adicionaValorReport("diaideNumliv", diaideNumliv);
	}

	public String getDiaideZonaof() {
		return diaideZonaof;
	}

	public void setDiaideZonaof(String diaideZonaof) throws ParseException {
		this.diaideZonaof = diaideZonaof;
		report.adicionaValorReport("diaideZonaof", diaideZonaof);
	}

	public String getDiaideNumcer() {
		return diaideNumcer;
	}

	public void setDiaideNumcer(String diaideNumcer) throws ParseException {
		this.diaideNumcer = diaideNumcer;
		report.adicionaValorReport("diaideNumcer", diaideNumcer);
	}

	public String getDiaideEndere() {
		return diaideEndere;
	}

	public void setDiaideEndere(String diaideEndere) throws ParseException {
		this.diaideEndere = diaideEndere;
		report.adicionaValorReport("diaideEndere", diaideEndere);
	}

	public String getDiaideUfexpe() {
		return diaideUfexpe;
	}

	public void setDiaideUfexpe(String diaideUfexpe) throws ParseException {
		this.diaideUfexpe = diaideUfexpe;
		report.adicionaValorReport("diaideUfexpe", diaideUfexpe);
	}

	public Integer getDinideComuex() {
		return dinideComuex;
	}

	public void setDinideComuex(Integer dinideComuex) throws ParseException {
		this.dinideComuex = dinideComuex;
		report.adicionaValorReport("dinideComuex", dinideComuex);
	}

	public String getDiaideBairro() {
		return diaideBairro;
	}

	public void setDiaideBairro(String diaideBairro) throws ParseException {
		this.diaideBairro = diaideBairro;
		report.adicionaValorReport("diaideBairro", diaideBairro);
	}

	public String getDiaideNumres() {
		return diaideNumres;
	}

	public void setDiaideNumres(String diaideNumres) throws ParseException {
		this.diaideNumres = diaideNumres;
		report.adicionaValorReport("diaideNumres", diaideNumres);
	}

	public String getDiaideUfmure() {
		return diaideUfmure;
	}

	public void setDiaideUfmure(String diaideUfmure) throws ParseException {
		this.diaideUfmure = diaideUfmure;
		report.adicionaValorReport("diaideUfmure", diaideUfmure);
	}

	public Integer getDinideComuen() {
		return dinideComuen;
	}

	public void setDinideComuen(Integer dinideComuen) throws ParseException {
		this.dinideComuen = dinideComuen;
		report.adicionaValorReport("dinideComuen", dinideComuen);
	}

	public Long getDinidePispas() {
		return dinidePispas;
	}

	public void setDinidePispas(Long dinidePispas) throws ParseException {
		this.dinidePispas = dinidePispas;
		report.adicionaValorReport("dinidePispas", dinidePispas);
	}

	public Integer getDinideAltura() {
		return dinideAltura;
	}

	public void setDinideAltura(Integer dinideAltura) throws ParseException {
		this.dinideAltura = dinideAltura;
		report.adicionaValorReport("dinideAltura", dinideAltura);
	}

	public Integer getDinideCodcut() {
		return dinideCodcut;
	}

	public void setDinideCodcut(Integer dinideCodcut) throws ParseException {
		this.dinideCodcut = dinideCodcut;
		report.adicionaValorReport("dinideCodcut", dinideCodcut);
	}

	public Integer getDinideCorcab() {
		return dinideCorcab;
	}

	public void setDinideCorcab(Integer dinideCorcab) throws ParseException {
		this.dinideCorcab = dinideCorcab;
		report.adicionaValorReport("dinideCorcab", dinideCorcab);
	}

	public Integer getDinideCorolh() {
		return dinideCorolh;
	}

	public void setDinideCorolh(Integer dinideCorolh) throws ParseException {
		this.dinideCorolh = dinideCorolh;
		report.adicionaValorReport("dinideCorolh", dinideCorolh);
	}

	public Integer getDinideTipcab() {
		return dinideTipcab;
	}

	public void setDinideTipcab(Integer dinideTipcab) throws ParseException {
		this.dinideTipcab = dinideTipcab;
		report.adicionaValorReport("dinideTipcab", dinideTipcab);
	}

	public Integer getDinideMatfua() {
		return dinideMatfua;
	}

	public void setDinideMatfua(Integer dinideMatfua) throws ParseException {
		this.dinideMatfua = dinideMatfua;
		report.adicionaValorReport("dinideMatfua", dinideMatfua);
	}

	public String getDiaideObserv() {
		return diaideObserv;
	}

	public void setDiaideObserv(String diaideObserv) throws ParseException {
		this.diaideObserv = diaideObserv;
		report.adicionaValorReport("diaideObserv", diaideObserv);
	}

	public String getDiaideMicrof() {
		return diaideMicrof;
	}

	public void setDiaideMicrof(String diaideMicrof) throws ParseException {
		this.diaideMicrof = diaideMicrof;
		report.adicionaValorReport("diaideMicrof", diaideMicrof);
	}

}
